﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Web;
using QDT.Core.Domain;
using QDT.Core.Members;

namespace QDT.Web.Models
{
    public class UserCarrayOldModel
    {
        [Required]
        public int UserId { get; set; }
        [Required]
        public string SafePassword { get; set; }
        [Required]
        public decimal Money { get; set; }
        [Required]
        public int BankId { get; set; }
        public int OtherBank { get; set; }
        [Required]
        public string BankCard { get; set; }
        public string RealName { get; set; }
        [Required]
        public string BankZone { get; set; }
        [Required]
        public int RegionLv1 { get; set; }
        [Required]
        public int RegionLv2 { get; set; }
        [Required]
        public int RegionLv3 { get; set; }
        [Required]
        public int RegionLv4 { get; set; }
    }

    public class UserCarrayModel
    {
        [Required]
        public int UserId { get; set; }
        [Required]
        public string SafePassword { get; set; }
        [Required]
        public decimal Money { get; set; }
        [Required]
        public int UserBank { get; set; }
    }

    public class CarryModel
    {
        public User User { get; set; }
        public UserCarry UserCarry { get; set; }

        public CarryModel(User user, UserCarry userCarry)
        {
            User = user;
            UserCarry = userCarry;
        }
    }
}